<template>
    <template v-for="(col,index) in columns" v-if="col.slot" slot-scope="{row}"  :slot="col.slot">
        <slot :name="col.slot" :row="row"></slot>
    </template>
</template>
<script>

export default {
    name: 'applySlot',
    
    props: {
        columns: Array,
    },
    data () {
        return {
        }
    },
    created(){
        // console.log('refs1',this.$refs.appTable,this.$scopedSlots);
    },
    mounted () {
        // console.log('$scopedSlots', this.$scopedSlots)
        // console.log('$slots', this.$slots)
        // console.log('refs2',this.$refs.appTable.$scopedSlots);
        // this.$refs.appTable.$scopedSlots = this.$scopedSlots;
    }
}
</script>
